﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StationaryRequest.DAL
{
    public interface IRepositoryManager
    {
        ICategoriesRepository CategoryRepository { get; }
    }

    public class RepositoryManager : IRepositoryManager
    {
        InventoryModelContainer context = new InventoryModelContainer();

        ICategoriesRepository categoriesrepository;
        public ICategoriesRepository CategoryRepository
        {
            get { return categoriesrepository ?? ( categoriesrepository = new CategoriesRepository( context ) ); }
        }
    }
}
